<?php
class Workflow extends AppModel {
	var $name = 'Workflow';
	var $displayField = 'title';
	//The Associations below have been created with all possible keys, those that are not needed can be removed
         var $virtualFields=array(
            'display'=>'CONCAT(Workflow.title)'
        );
	var $belongsTo = array(
		'Tool' => array(
			'className' => 'Tool',
			'foreignKey' => 'tool_id',
		),
                'Company' => array(
			'className' => 'Company',
			'foreignKey' => 'company_id',
		)
	);

	var $hasMany = array(
		'Powerdelegation' => array(
			'className' => 'Powerdelegation',
			'foreignKey' => 'workflow_id',
			'dependent' => false,
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'exclusive' => '',
			'finderQuery' => '',
			'counterQuery' => ''
		)
	);

        function getTools(){
            return $this->Tool->getTools();
        }
        function getToolsTables(){
            return $this->Tool->getToolsTables();
        }
}
?>